From 2078430221402cdc2fb06e1909404e9d7c9daf31 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Fri, 7 Jun 2019 00:19:37 +0200 Subject: [PATCH] Make keyutils reproducible Adhere to the SOURCE_DATE_EPOCH standard and use it's date when set otherwise fall back to the default behaviour. Signed-off-by: Jelle van der Waa --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 33a451e..882b27e 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,7 @@ all: keyctl request-key key.dns_resolver ############################################################################### #RPATH = -Wl,-rpath,$(LIBDIR) -VCPPFLAGS := -DPKGBUILD="\"$(shell date -u +%F)\"" +VCPPFLAGS := -DPKGBUILD="\"$(shell date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%F)\"" VCPPFLAGS += -DPKGVERSION="\"keyutils-$(VERSION)\"" VCPPFLAGS += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\"" -- 2.21.0